
// ##############################
// ####  note:  bokeweilai bt main fun
// ####  create:  TANWENHUI (twh:谭文辉)
// ####  date:   2024/6/18
// ##############################

#ifndef __BKWL_BT_H__
#define __BKWL_BT_H__
#include "bk_private/bk_init.h"
#include <components/system.h>
#include <os/os.h>
#include <components/shell_task.h>
#include "cli.h"
#include <stdio.h>

#define ADV_MAX_SIZE (251)
#define ADV_NAME_HEAD "BKWL"
#define ADV_TYPE_FLAGS (0x01)
#define ADV_TYPE_LOCAL_NAME (0x09)
#define ADV_TYPE_SERVICE_UUIDS_16BIT (0x14)
#define ADV_TYPE_SERVICE_DATA (0x16)
#define ADV_TYPE_MANUFACTURER_SPECIFIC (0xFF)
#define BEKEN_COMPANY_ID (0x05F0)
#define BOARDING_UUID (0xFE01)

extern int bkwl_bluetooth_init(void);

extern bk_err_t bkwl_get_bt_pair_data(char *jsonSrcData);
extern bk_err_t bkwl_send_bt_pair_ack();

#endif
